//用户账号相关数据ts类型


export interface ResponseData {
    code: number,
    message: string,
    ok: boolean,
}
// 一个账号信息ts类型
export interface User {
    id?: number
    createTime?: string
    updateTime?: string
    username?: string
    password?: string
    name?: string
    phone?: null
    roleName?: string
}

export type Records = User[]
//获取全部用户信息接口返回的ts类型
export interface UserResponseData extends ResponseData {
    data: {
        records: Records
        total: number
        size: number
        current: number
        pages: number
    }
}
//一个职位的ts类型
export interface RoleData {
    id?:number
    createTime?:string
    updateTime?:string
    roleName:string
    remark:null
}
//全部职位列表
export type AllRole = RoleData[]

//获取全部职位接口返回数据类型
export interface AllRoleResponseDate extends ResponseData {
    data: {
        assignRoles: AllRole
        allRolesList: AllRole
    }
}
//给用户分配角色接口携带参数的ts类型
export interface SetRoleData {
    roleIdList:number[]
    userId:number
}





